//
//  SqlResultSet.h
//  iphone_test
//
//  Created by whlsxl on 10-5-11.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface SqlResultSet : NSObject {
	NSMutableArray *data;
	int data_index;
	NSMutableArray *att_name_list;
	int total_att;
	int now;
}
#pragma mark create

- (void)addNewRecord;
- (void)addItem:(NSString *)iteam;

- (void)setNameAtt:(NSString *)att_name;
#pragma mark use
- (BOOL)next;

- (NSString *)getStringByIndex:(int) index;
- (NSString *)getStringByAtt:(NSString*) att;

- (int)getIntByIndex:(int) index;
- (int)getIntByAtt:(NSString *) att;

- (unsigned long int)getULongByIndex:(int) index;
- (unsigned long int)getULongByAtt:(NSString *) att;

- (int)getIndexByAtt:(NSString *) att;

- (BOOL)isOut;
#pragma mark others
- (void)showLog:(NSString *)log;
//+ (unsigned long int)parseLong:(NSString *)string;

@end
